home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
e
/
misc.txt
/
000104_clamat@telus.net_Mon Jul 23 14:45:41 2007.msg
< prev
next >
Wrap
Internet Message Format
|
2018-01-01
|
1KB
Path: reader2.panix.com!panix!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps89.POSTED!53ab2750!not-for-mail
Newsgroups: comp.protocols.kermit.misc
From: Matthew Clarke <clamat@telus.net>
Subject: Re: kermit script and unix arguments
References: <1184013722.056689.209050@r34g2000hsd.googlegroups.com>
User-Agent: nn/6.7.3
Lines: 21
Message-ID: <JUyki.20761$Io4.15605@edtnps89>
Date: Mon, 09 Jul 2007 22:46:01 GMT
NNTP-Posting-Host: 207.6.28.90
X-Trace: edtnps89 1184021161 207.6.28.90 (Mon, 09 Jul 2007 16:46:01 MDT)
NNTP-Posting-Date: Mon, 09 Jul 2007 16:46:01 MDT
Xref: panix comp.protocols.kermit.misc:15675
mortier <mortier@locean-ipsl.upmc.fr> writes:
>Hello,
>
>I want to use a kermit script starting with #!/usr/bin/kermit +
>with a line of argument (which can be empty). How the check if there
>are actually arguments ? In the case where there are arguement, how to
>put then in local kermit variables? In fact, how to mimic with kermit
>the linux
>while getops "options here" option ; do ... ?
>
>Thanks a lot for help, Laurent
According to "Using C-Kermit" (2nd edition), \v(args) holds the number of
arguments and the array \&@[] holds the arguments themselves.
See http://www.columbia.edu/kermit/scriptlib.html for example scripts,
many of which have code to parse command-line arguments.
--
Snappy Quote: "abcdefghijklmnopqrstuvwxyz"*
*some assembly required